Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDocument


GetContainer

The GetContainer method returns a reference to the container object that created this document.

ODContainer GetContainer ();
return value
A reference to the container object that created this document.
DISCUSSION
This method does not increment the reference count of the returned container. For that reason, if you cache the returned container, you should call its Acquire method to increment its reference count and then call its Release method when you are finished using it.

SEE ALSO
The ODContainer::AcquireDocument method (page 100).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help